/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-12-11 16:28:24
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-04 18:38:59
 * @FilePath: \cxl-driving-training\src\views\orderManagement\list\config.ts
 */
export const tableConfig = {
    headerOperation: [],
    search: [
        {
            key: 'time',
            type: 'datetimerange',
            name: '创建时间',
            modelValue: ''
        },
        {
            key: 'orderNo',
            type: 'text',
            name: '订单编号',
            modelValue: ''
        },
        {
            key: 'orderStatus',
            type: 'select',
            name: '订单状态',
            modelValue: '',
            options: []
        },
        {
            key: 'schoolId',
            type: 'select',
            name: '服务驾校',
            modelValue: '',
            options: <any>[]
        }
        // {
        //     key: 'carType',
        //     type: 'select',
        //     name: '班别类型',
        //     modelValue: '',
        //     options: [
        //         { value: '-1', label: '全部' },
        //         { value: '1', label: '小车C1' },
        //         { value: '2', label: '小车C2' },
        //         { value: '3', label: '摩托车' },
        //         { value: '4', label: '无人机' }
        //     ]
        // },
        // {
        //     key: 'customerSource',
        //     type: 'select',
        //     name: '客户来源',
        //     modelValue: '',
        //     options: [
        //         { value: '-1', label: '全部' },
        //         { value: '1', label: '线索转换' },
        //         { value: '2', label: '自动转换' }
        //     ]
        // }
    ],
    permission: ['GET:/api/mall/order/manage/pageList'],
    table: {
        operationWidth: '82px',
        operation: [
            {
                type: 'detailed',
                visible: true,
                permission: ['GET:/api/mall/order/manage/detailInfo'],
                className: '',
                name: '详情'
            }
        ],
        propName: {
            orderNo: '订单编号',
            schoolName: '服务驾校',
            city: '城市',
            region: '区域',
            className: '班别名称',
            classNumber: '班别编号',
            actualAmount: '价格（元）',
            name: '姓名',
            phone: '手机号',
            payPlatform: '购买渠道',
            payType: '支付方式',
            orderStatus: '订单状态',
            createTime: '下单时间',
            payTime: '付款时间',
            followBy: '跟进人',
            remark: '备注'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: [],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
